package com.exercise.hospital.mapper;

import com.exercise.hospital.beans.Hospital;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * HospitalMapper
 *
 * @author admin
 */
public interface HospitalMapper {

    /**
     * 获取所有 Hospital 信息
     *
     * @return
     */
    public List<Hospital> getAllHospital();

    /**
     * 条件查询 Hospital
     *
     * @param name
     * @param type
     * @param department
     * @return
     */
    List<Hospital> getHospitalByCondition(@Param("name") String name, @Param("type") String type, @Param("department") String department);

    /**
     * 进行挂号
     *
     * @param hospital
     */
    void registration(Hospital hospital);

    /**
     * 核销挂号信息
     *
     * @param id
     */
    void updateRegisterInfo(Integer id);
}
